#include "startuppage.h"
#include <QLabel>
#include <QTimer>


StartUpPage::StartUpPage(QDialog *parent)
    : QDialog{parent}
{

    setFixedSize(1450, 860);
    setStyleSheet("background-color: #FFFFFF");

    QLabel* imageLabel = new QLabel(this);
    imageLabel->setPixmap(QPixmap(":/images/startupPage/biteshipin.png"));
    imageLabel->move(524, 374);
}

void StartUpPage::startTimer()
{
    QTimer* timer = new QTimer();
    timer->setSingleShot(false);
    connect(timer, &QTimer::timeout, this, [=]{
        timer->stop();
        delete timer;
        close();
    });

    timer->start(2000);
}


